package com.financing.wap.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.financing.wap.dao.IDiscussDao;
import com.financing.wap.dto.DiscussDTO;

@Repository("discussDao")
@SuppressWarnings(value={"deprecation", "unchecked"})
public class DiscussDaoImpl extends BaseDaoImpl<DiscussDTO, java.lang.Integer> implements IDiscussDao {


	@Override
	public Class<DiscussDTO> getEntityClass() {
		return DiscussDTO.class;
	}

	@Override
	public List<DiscussDTO> getDiscussDTOList(DiscussDTO dto) {
		List<DiscussDTO> result = this.getSqlMapClientTemplate().queryForList("discess.getDiscussInfoList",dto);
		return result;
	}

	@Override
	public int insertDiscussDTO(DiscussDTO dto) {
		Integer id = (Integer)this.getSqlMapClientTemplate().insert("discess.insertDiscussDTO",dto);
		return id;
	}

}
